cat=input("Введите слова:")
CAT=cat.split()
num=' '
for i in CAT:
    if i=='one':
        num+='1'
    if i=='two':
        num+='2'
    if i=='three':
        num+='3'
    if i=='four':
        num+='4'
    if i=='five':
        num+='5'
    if i=='six':
        num+='6'
    if i=='seven':
        num+='7'
    if i=='eight':
        num+='8'
    if i=='nine':
        num+='9'
    if i=='zero':
        num+='0'
s=len(num)
d=len(CAT)
if s-1<d:
    print("Wrong input")
if s-1==d:
    print(num)
